import time


def translateTime(t):
    t_str = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(t / 1000))
    return t_str


def convert(count):
    count1 = []
    for item in count:
        dict = []
        for it in item:
            if (type(it) != type(0.01)) & (type(it) != type(1)) & (type(it) != type(None)):
                dict.append(it.encode('latin-1').decode('gbk'))
            else:
                dict.append(it)
        # print(dict)
        count1.append(tuple(dict))
    return count1
